home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / comp / ibm-rt-faq / aix-v2 / part3 < prev    next >
Internet Message Format  |  1994-03-02  |  91KB

  1. Path: bloom-beacon.mit.edu!hookup!swrinde!menudo.uh.edu!lobster!antimatr!faq-rt
  2. From: faq-rt@antimatr.hou.tx.us (Mark Whetzel)
  3. Newsgroups: comp.sys.ibm.pc.rt,comp.unix.aix,comp.answers,news.answers
  4. Subject: COMP.SYS.IBM.PC.RT: - AIX V2 - Part 3 of 4 - Frequently Asked Questions
  5. Summary: This posting contains part 3 of 4 of Frequently Asked Questions 
  6.          (and their answers) and general information, hints and tips
  7.          for using AIX V2.2.x on IBM RT (615x) computers.
  8. Keywords: IBM RT PC software FAQ 6150 6151 6152 AIX VRM AOS MACH PICK
  9. Message-ID: <ibmrt_aixv2p3_762606210@antimatr.hou.tx.us>
  10. Date: 2 Mar 94 11:03:59 GMT
  11. Expires: 15 Apr 94 11:03:30 GMT
  12. References: <ibmrt_aixv2p1_762606210@antimatr.hou.tx.us>
  13. Sender: markw@antimatr.hou.tx.us
  14. Reply-To: aix-rt@antimatr.hou.tx.us
  15. Followup-To: comp.sys.ibm.pc.rt
  16. Lines: 2013
  17. Approved: news-answers-request@MIT.Edu
  18. Supersedes: <ibmrt_aixv2p3_762525136@antimatr.hou.tx.us>
  19. Xref: bloom-beacon.mit.edu comp.sys.ibm.pc.rt:1429 comp.unix.aix:21321 comp.answers:3992 news.answers:15929
  20.  
  21. Archive-name: ibm-rt-faq/aix-v2/part3
  22. Last-modified: Fri Feb 18 05:26:17 CST 1994
  23. Version: 1.0
  24.  
  25. Frequently Asked Questions for:  AIX V2.2.1 on IBM RT systems
  26.                                  Part 3 of 4 parts.
  27.                                  Various subject Q & A topics for AIX/RT.
  28.  
  29. See part 1 for a complete index of the FAQ.
  30. ================================================================================
  31.  
  32. ------------------------------
  33. 3.0   Problem Question and Answers.
  34.  
  35. Q.1   I have lost my root password, how can I reset it?
  36.  
  37.       I have a procedure in another document outlining the steps for this
  38.       recovery.  E-mail me with your request, and I will mail it to you.
  39.       I hesitate to post the procedure to a public list.
  40.    
  41. ------------------------------
  42. Q.2   LED code 99 is displayed at power on, what is it?
  43.  
  44.       The keylock has been left in the 'locked' position at power on.
  45.       Turn the key to unlock and the system will continue booting.
  46.  
  47. ------------------------------
  48. Q.3 - How do I move 'system' filesystems (/,/usr,/tmp,/u,/vrm)?
  49.       How to increase the size of filesystems.
  50.  
  51.    The procedure for moving or enlarging a minidisk are virtually the same.
  52.    The basic procedure involves rebooting from the install/maint disk,
  53.    backing up the minidisk in question, deleting the original space
  54.    and remaking the new space, then restoring the data.  One critical element
  55.    of these procdures is the IODN of the various system minidisks.  Make
  56.    sure that you use the same IODN number for the newly created area as
  57.    before. 
  58.  
  59.    * Enlarging an existing minidisk
  60.      To enlarge a minidisk, the principle is the following:
  61.  
  62.           backup your minidisk
  63.           load the installation/maintenance diskette
  64.           get the IODN of the current minidisk you want to enlarge
  65.           delete the minidisk
  66.           create a new, larger minidisk using the same IODN
  67.           make a filesystem on the new minidisk
  68.           restore your data
  69.           reboot normally
  70.  
  71.    * Detailed procedure:
  72.        You can change the size of the /usr minidisk (or any other for that
  73.        matter). Minidisks are sections of the hard disk that are contiguous.
  74.        There may not be any free space immediately after the /usr
  75.        minidisk on your system. If that is the case, then you will have to
  76.        rearrange several minidisks on your system in order to create the
  77.        amount of contiguous free space that you need. A general procedure
  78.        is outlined below. More detailed information is contained in
  79.        Managing the AIX Operating System (SBOF-0168).
  80.       
  81.       1)  While in the Bourne Shell use the minidisk command and
  82.           print off the minidisk configuration (F4).
  83.       2)  Check the printout from the minidisk command. Check to see if
  84.           there is any free space immediately after the /usr minidisk.
  85.           If there is enough, then the procedure will be fairly simple.
  86.           If not then it is a little more involved.
  87.       3)  Shutdown and boot from the Installation/Maintenance Diskette.
  88.           Follow procedure A or B, depending on the free space.
  89.       
  90.       Procedure A - IF there is ENOUGH free space:
  91.       
  92.       4)  Select Backup commands.
  93.       5)  Select Backup a file system and backup the /usr minidisk.
  94.           DO NOT USE THE BACKUP A MINIDISK IMAGE OPTION.
  95.           Be sure to check for any errors during the backup operation.
  96.       6)  Select Delete a fixed disk minidisk and write down the /usr
  97.           minidisk IODN. Delete the minidisk.
  98.       7)  Select Create a fixed disk minidisk.
  99.           a)  Select Specify IODN and supply the IODN that you noted in the
  100.               previous step.
  101.           b)  Select No preference to cause the minidisk to be created in
  102.               the first disk area large enough to accommodate it. (Do not
  103.               use the beginning, middle, or end allocation suboptions.)
  104.           c)  Specify the number of blocks necessary to meet your new
  105.               requirements.
  106.       8)  Select Make a file system and create a file system on the new
  107.           minidisk. Select the same IODN that the original file system
  108.           had, the one you noted above.
  109.       9)  Select Restore commands.
  110.           a) Select Restore a file system.
  111.           b) Restore the old file system to the new minidisk, using the
  112.              same IODN.
  113.       10) Select Check a file system and check the structure of the new
  114.           file system.
  115.       11) Remove the AIX Operating System Installation/Maintenance
  116.           diskette and start the system from the fixed disk.
  117.       
  118.       Procedure B - IF there is NOT ENOUGH free space:
  119.       
  120.       4)  Select Backup commands.
  121.       5)  Select Backup a file system and backup the /usr filesystem.
  122.           a)  Repeat this step for the other filesystems that are on the
  123.               hard disk and physically located "behind" the /usr minidisk.
  124.               For example if a system only has one hard disk (70 Meg), the
  125.               minidisk facility gives the following information:
  126.       
  127.               MD    MD     MD    Block Number ... Mount     ......
  128.               Name  IODN  Type  Size   Blocks ... Directory ......
  129.       
  130.               hd6   32760 VRM   512    3600       /vrm
  131.                     32766 Pgsp  512    13722
  132.               hd0   16384 AIX   512    25679      /
  133.               hd2   16387 AIX   512    66809      /usr
  134.               hd1   16386 AIX   512    22810      /u
  135.               hd3   16388 AIX   512    4000       /tmp
  136.               hd4   16385 AIX   512    5000              (the dump minidisk)
  137.               Available space   512    1000  
  138.       
  139.               Assuming that there is some free space after hd4, then
  140.               backup the /usr and /u filesystems. You probably would not
  141.               backup the /tmp minidisk since you do not have any permanent
  142.               files there. You would not backup the dump minidisk (IODN
  143.               16385). DO NOT USE THE BACKUP A MINIDISK OPTION.
  144.               It is good backup procedure to check the file system using fsck
  145.               to make sure it isn't corrupted before doing a backup.  Also,
  146.               make sure the backup was successful by doing a 'restore -T' to
  147.               the backup tape, before destroying the file system.
  148.       
  149.       6)  Select Delete a fixed disk minidisk and write down the IODN numbers
  150.           for every minidisk you are about to delete.  From the example in
  151.           step 5, you would record the IODN's for the /usr, /u, /tmp, and
  152.           the dump minidisk.  After verifying your tape(s) are good, delete
  153.           the minidisk(s) that need to be re-arranged.
  154.       
  155.       7)  Select Create a fixed disk minidisk.
  156.           a)  Select Specify IODN and supply the IODN that you noted in
  157.               the previous step.
  158.           b)  Select No preference to cause the minidisk to be created in
  159.               the first disk area large enough to accommodate it. (Do not
  160.               use the beginning, middle, or end allocation suboptions.)
  161.           c)  Specify the number of blocks necessary to meet your new
  162.               requirements.
  163.           d)  Repeat step 7 a), b), and c) for each of the minidisks
  164.               previously removed.
  165.       
  166.       8)  Select Make a file system and create a file system on each of
  167.           the new minidisks. Be sure to use the same IODNs as was
  168.           used on the original file systems.
  169.       
  170.       9)  Select Restore commands.
  171.           a)  Select Restore a file system.
  172.           b)  Restore the old file system to the new minidisk, using the
  173.               same IODN.
  174.           c)  Repeat 9 a) and b) for each minidisk and file system.
  175.       
  176.       10) Select Check a file system and check the structure of all the
  177.           new file systems you have restored.
  178.       
  179.       11) Remove the AIX Operating System Installation/Maintenance
  180.            diskette and start the system from the fixed disk.
  181.       
  182.    ==**==**==**==**==**==**==**==**==**==**==**==**==**==**==**==**==**==
  183.    Tip from Willi Zuber, IBM France
  184.    Date: 16.09.1988
  185.  
  186.    [ NOTE: I personally have NOT tested this way of 'increasing' /usr.
  187.      I HIGHLY recommend that you have a good system backup in case something
  188.      goes wrong.  Always 'Be Prepared' when experimenting! - MW ]
  189.  
  190.    If /usr is full, do the following to gain some space:
  191.  
  192.       1. Find the biggest subdirectory in the /usr directory:
  193.          commands:    cd /usr
  194.                       li -R1p | xargs -i du -s {}
  195.          The system lists the directories of /usr and their
  196.          respective disk usage. Take note of the biggest one:
  197.          ex. 18000 blocks for /usr/lib
  198.       
  199.          [ Note: lib is the hardest to move, as it is usually busy with
  200.              programs.  I suggest /usr/lpp first, then try /usr/lib.
  201.              I suspect it would be best to have a completely idle system
  202.              and a 'killall' done first before attempting /usr/lib. -MW ]
  203.  
  204.       2. Create a new minidisk to contain that "biggest subdirectory"
  205.          and give it a "dummy library name":
  206.          ex. hd13 with 22000 blocks to contain "/dummylib"
  207.       
  208.       3. Mount the new minidisk:
  209.          command:  mount /dev/hd13 /dummylib
  210.       
  211.       4. Kill the error daemon:
  212.          command:  kill /usr/lib/errdemon
  213.          NB. This is only necessary if you move the subdirectory "lib"
  214.       
  215.       5. Copy /usr/lib to /dummylib:
  216.          commands:    cd /usr/lib
  217.                       find . -print | cpio -pdl /dummylib
  218.       
  219.          [ Note: Verify that your copy is good before continuing. - MW ]
  220.  
  221.       6. Umount /dev/hd13:
  222.          command:  umount /dummylib
  223.       
  224.       7. Remove the entries of /usr/lib:
  225.          commands:     cd /usr/lib
  226.                        rm -r *
  227.       
  228.       8. Mount hd13 on the correct directory:
  229.          command:  mount /dev/hd13 /usr/lib
  230.       
  231.       9. Update the file /etc/filesystems:
  232.          change the stanza name "/dummylib:" into "/usr/lib:"
  233.  
  234.          (do not forget the double point!!)  [ Colon for us USA types - MW ]
  235.  
  236.          WARNING: Make sure that the mount is set to always mount at IPL.
  237.       
  238.       10. Re-ipl the system.
  239.       
  240. ------------------------------
  241. Q.4 - What do the IODN numbers mean.
  242.  
  243.        Input Output Device Numbers (IODN) of the system minidisks.
  244.        The numbers assigned to various system minidisks is how the VRM
  245.        is able to associate a particular disk partition with the related
  246.        filesystem.
  247.  
  248.        dev  IODN   use      mount             attributes
  249.        ---  -----  -------  ---------------   -----------------
  250.        hd0  16384  AIX      /                 Auto IPL
  251.        hd1  16386  AIX      /u
  252.        hd2  16387  AIX      /usr
  253.        hd3  16388  AIX      /tmp
  254.        hd4  16385                             dump
  255.             32766  PgSpace
  256.        hd6  32760  VRM      /vrm              read only
  257.        hd7  20001  AIX      /user-minidisk
  258.  
  259.        IODN number for minidisks is 16384 (minimum) to 32767 (maximum).
  260.        User created minidisks start at 20001 thru 29999.
  261.  
  262. ------------------------------
  263. Q.5 - How do I make a netnews filesystem with lots of inodes?
  264.  
  265.       The minidisks command can make a minidisk partition of any size,
  266.       but the maximum number of inodes in will make is less than
  267.       32000 inodes, and is based on the size of the minidisk being created. 
  268.       The AIX filesystem can be made with a larger number of inodes by use
  269.       of a prototype file and the 'mkfs' command.
  270.     
  271.       1) Use minidisks to make a filesystem of the size you wish,
  272.          on the disk you want.. example /news.
  273.  
  274.          number of blocks maximum on a E310 = 605460  (leaving 9 free)
  275.  
  276.          Note the device number when the minidisks makes the new filesystem 
  277.          and minidisk.
  278.  
  279.       2) mount /news
  280.          df /news
  281.  
  282.          Note: The number of blocks will be LESS than that specified in
  283.          the minidisks command, because of inode blocks overhead.
  284.  
  285.       3) Use the proto command and save the output to a file.
  286.            proto /news >/tmp/proto.keep
  287.  
  288.       4) unmount /news
  289.  
  290.       5) Edit the /tmp/proto.keep file and add the size of the filesystem,
  291.          and your requested number of of inodes.  Be conservitive, the 'mkfs'
  292.          command will round UP to a proper multiple based on the geometry of
  293.          the target disk drive.
  294.  
  295.          # cat /tmp/proto.keep
  296.          : Prototype file for /news
  297.          /noboot 605460 63000 
  298.          d--777  0 0   
  299.            lost+found      d--755  0 0   
  300.              $
  301.            $
  302.          $
  303.  
  304.          # mkfs /dev/hd10 -vNEWS /tmp/proto.keep
  305.  
  306.          DANGER: Do not go over 64000 inodes.  Due to some bug in the
  307.          AIX filesystem code, it seems to get lost if the total number
  308.          of inodes is very large, and does not contain some slack space.
  309.  
  310.       6) mount /news
  311.          Expand the lost+found directory by creating about 200 files
  312.          with touch, and then delete them.  This expansion is required so
  313.          that during 'fsck' processing, if errors DO occur, the system
  314.          can move 'dangling' files to the lost+found directory.  During this
  315.          processing fsck cannot have the filesystem changing without its
  316.          knowledge.
  317.        
  318. ------------------------------
  319. Q.6 - The domain name server is not working correctly.
  320.  
  321.       The version of named shipped with AIX/RT is VERY old!  
  322.       A partial 'what /usr/lpp/tcpip/etc/named' shows:
  323.  
  324.     ns_init.c    4.23 (Berkeley) 2/28/88
  325.     ns_main.c    4.30 (Berkeley) 3/7/88
  326.      Copyright (c) 1986 Regents of the University of California.
  327.     ns_maint.c    4.23 (Berkeley) 2/28/88
  328.     ns_req.c    7.7 89/01/27 11:30:46
  329.     ns_req.c    4.32 (Berkeley) 3/31/88
  330.     ns_resp.c    4.50 (Berkeley) 4/7/88
  331.     ns_sort.c    4.3 (Berkeley) 2/17/88
  332.     ns_stats.c    4.3 (Berkeley) 2/17/88
  333.     named 4.8 #12: Wed Jul 27 11:47:05 CDT 1988 
  334.  
  335.      While it pretends to be 4.8, it does not have anywhere near the
  336.      features of the 4.8.3 server or later.  Particular problems I have
  337.      seen are:
  338.         - Secondary servers do not understand how to save the transfered
  339.           zone data to files for restart recovery.
  340.         - zone transfers are NOT asyncronous.  If lots of secondary
  341.           zones are being handled, zone transfers will tie up the server
  342.           making in unresponsive.
  343.         - 'TXT' records, while not documented as available in the TCP/IP
  344.           manual, do work on IBM supplied server.
  345.         - Later maintence level of 1773, seems to have broken MX record
  346.           lookup by the resolver routines located in libc.
  347.  
  348.       If you are having problems with the server, I suggest that you 
  349.       replace the named server with at least the 4.8.3 version available
  350.       from the net.  See section P.3 on porting and running that server.
  351.  
  352. ------------------------------
  353. Q.7 - Mail addressing and setup.
  354.  
  355.       The AIX/RT standard mail facilities consist of the sendmail program,
  356.       (if installed) and the SYSV based user agent 'mail' command.
  357.       The sendmail code appears to be based on sendmail version 7.24.
  358.       The only overt major change to the programs is the location of the
  359.       control files.  They are located in:  /usr/adm/sendmail
  360.  
  361.       IBM includes a program called '/usr/lib/edconfig' to help with editing
  362.       the sendmail.cf control file.  This program is menu driven, and depends
  363.       on the supplied sendmail.cf and the comments located in the file to be
  364.       able to change the sendmail configuration for you.  However, you
  365.       do not have to use this program to configure the sendmail config file.
  366.       There are liberal comments located in the file describing the various
  367.       macros for the system configuration. 
  368.  
  369.       For more documentation on the IBM sendmail, see the "Managing the AIX
  370.       Operating System" manual number SC23-2008. Chapter 7 is devoted to mail
  371.       issues.  That chapter has some excelent information on understanding the
  372.       sendmail.cf file, sendmail macros, mail tailoring issues, understanding
  373.       mail rewrite rules and the obscure format of the sendmail config file.
  374.       Also covered is the format of the queue control files, and more.
  375.  
  376.       If you use the supplied AIX sendmail config file, here are some
  377.       macros that should be looked at:
  378.         Dw       Host name macro
  379.         Cw       Host name class
  380.         DD       Domain name macro
  381.         DE       Macro for first (left most part here in the US) domain part.
  382.         DF       Macro for second domain part.
  383.         DG       Macro for third (optional) domain part.
  384.         DH       Macro for fourth (optional) domain part.
  385.  
  386.       To avoid confusion IBM manual recommends that the following names for
  387.       your system should all be the same:
  388.  
  389.          nodename   - Defined in /etc/master and built into the kernel.
  390.                       Binary changed in /unix and the running kernel with
  391.                       the 'chparm nodename=' command.
  392.          nickname   - The name that Distributed Services uses for your system
  393.                       name.  Changed by the 'ndtable' command.
  394.          hostname   - TCP/IP name defined and displayed by the 'hostname'
  395.                       command.  Usually set from /etc/rc.tcpip shell script.
  396.  
  397.       As supplied, you will find that the IBM mailer has a great deal of
  398.       problems existing in a mixed UUCP and TCP envionment.  A pure TCP
  399.       envrionment also will have problems with MX records, and domain name
  400.       service queries.  X.400 names can cause it all kinds of problems.
  401.  
  402.       I found that the best solution was to replace the supplied sendmail
  403.       with PD versions.  See section P.5 for porting and install instructions
  404.       for IDA sendmail 5.65c.
  405.  
  406. ------------------------------
  407. Q.8 - How do I set up a dial-in autospeed detect serial line?
  408.  
  409.       See the software question S.13 for general serial port add
  410.       instructions.
  411.  
  412.       Modem capabilities vary greatly from vendor to vendor, and much of
  413.       the 'art' of serial port setup of any type will be impacted by 
  414.       the setup 'switches' both hardware and software register setups.
  415.       A great deal of the problem with serial port function is using the
  416.       proper cable.  Modem usage requires a correctly wired cable.  See
  417.       the hardware FAQ for pinout and cable information.
  418.  
  419.       Before starting any attachment of a modem, read your vendors manual
  420.       on setups.  Some vendors documentation have recommended setups for
  421.       attachment to UNIX systems, particularly when used with UUCP.
  422.  
  423.       Examine your vendors modem manual about soft register settings dealing
  424.       with speed matching, and how it is presented to the host computer.
  425.       If you have one of the newer breed of modems where the
  426.       serial-port-to-LOCAL-computer speed can be locked to a single speed,
  427.       while the modem-to-REMOTE-computer speed can be set to the callers speed,
  428.       Then the procedure described below is not neecessary, simply setup
  429.       the port as normal, and set the port speed to the 'locked' speed of
  430.       the modem, and your work is done. (Trailblazer modems have this
  431.       capability for example).  Make sure that the pacing, either XON/XOFF
  432.       or RTS/CTS, is setup correctly in the modem and/or the communication
  433.       terminal that the caller will be using. If the users speed will be
  434.       mis-matching the port speed, there can be over/under run problems.
  435.  
  436.       Setting up an AIX/RT port for autobaud capabilities is not described
  437.       very well in any of the AIX documentation.  The Managing the AIX
  438.       Operating system book has a small section devoted to serial port
  439.       setup, but this obscure feature of AIX/RT serial ports is overlooked.
  440.       The real truth is AIX/RT serial port capabilities are not great,
  441.       especially in the autobaud arena.  You will have to decide what
  442.       combination of speeds and parity settings you would like to support
  443.       and select a few popular combinations.
  444.  
  445.       To allow more than one speed to dial in requires you to edit manually
  446.       the /etc/ports file AFTER you add the tty port with the devices command.  
  447.  
  448.    WARNING:  Any use of the devices command on this port later will wipe
  449.              out the following changes, and will have to be manually be
  450.              re-entered for that port.
  451.  
  452.       Edit the /etc/ports file, find the /dev/tty## entry that was added by
  453.       the devices command for your serial port.
  454.  
  455.       Looks a little like this:
  456.  
  457.      /dev/tty0:
  458.       lock = true
  459.       speed = 2400
  460.       logmodes = echoe+cs8
  461.       runmodes = hupcl+cs8+cread+brkint+icrnl+opost+tab3+onlcr+isig+
  462.                      icanon+echo+echoe+echok
  463.       parity = none
  464.       synonym = /dev/ltty0
  465.  
  466.      Change the 'speed' and parity entries to look like this for a three
  467.      speed call in of 9600,2400,1200 with no-parity used for any of the
  468.      speeds used.
  469.  
  470.         speed=9600,2400,1200
  471.         parity=none,none,none
  472.  
  473.      This will set the port initially to 9600 baud, and step down the speed
  474.      on each recipt of a 'break' sequence by the modem.  
  475.  
  476.      If a user dials in at 2400, after the modems sync carrier, and setup
  477.      for 2400 baud, if the port is at the wrong speed, they will
  478.      receive garbage for the 'hearld' stanza in the 'defaults' section of
  479.      the /etc/ports file.  They then press 'break' and the RT will move to the
  480.      next speed, and then the 'hearld' will be re-displayed.  Once the speed
  481.      and parity setting matches the users modem speed, the login hearld will
  482.      be readable.  If the end of the list is reached on speeds, it wraps
  483.      around to the first entry.
  484.  
  485. ------------------------------
  486. Q.9 - How to setup a serial port for shared dial-in and out?
  487.  
  488.       To properly allow a serial port to be used for dial-out with
  489.       the cu command or for UUCP usage, AND allow call-in capability will
  490.       requre a few non-standard, and obscurely documented changes.
  491.  
  492.       1) Define the port for dial-in usage as described in section
  493.          Q.8 above, but make sure the 'ae' parameter is set to delay or
  494.          share.  I find that delay works best, but use what is proper for
  495.          your requirements.
  496.  
  497.       2) Add the following line to the /etc/ports file for the 
  498.          /dev/tty# stanza requiring dial-in/out capability.
  499.           lock = true
  500.      This will cause a lock file to be created in /etc/locks by
  501.      the getty, and also allow it to correctly handshake with
  502.      uucico and cu to release the serial port when necessary for
  503.      outbound operations, and also will block uucp and cu from
  504.      operating when a caller is logged in on the port.
  505.       
  506.       Under normal usage, this is all that should be necessary.
  507.  
  508.       NOTE: Even on the last fix level, the ATE command does not know how
  509.             to request a lock, or release a port in a automatic fashion.
  510.         You will have to issue a 'pdisable' command prior to 'ate'
  511.         usage, and then re-issue a 'pdelay' or 'pshare' command after
  512.         done using ate.
  513.       NOTE2: Proper locking and releasing of ports with uucico and cu was not
  514.             fixed until around the 2705 opsys update level or later.
  515.  
  516. ------------------------------
  517. Q.10 - The devices command won't find my newly installed adapter.
  518.     
  519.     Four possibilities:
  520.       1) Conflicting interrupt or DMA levels are preventing the
  521.          board from being properly recognized at boot time.
  522.       2) The adapter card is not supported by AIX V2.2.1
  523.       3) The adapter card is defective.
  524.       4) Needed support functions were not installed.
  525.          The VRM device driver LPP sections may not be installed.
  526.          The disks contain support for the following drivers:
  527.         IBM SCSI cards, 3270 cards,  Ethernet cards,
  528.         Token-ring cards, devices needing block I/O support.
  529.  
  530. ------------------------------
  531. Q.11 - What is the procedure to add a hard disk to a system that has
  532.        been in use on another RT system running AIX.
  533.  
  534.     Assming that the drive to be added came from another RT system, no special
  535.     formatting is needed. The minidisk partition table, and bad track map
  536.     are already on the drive.
  537.  
  538.     To be safe, I personally like to remove all hard drives except the NEW one,
  539.     put the terminator on the new drive, boot from the VRM floppy, and then use
  540.     the second procedure below to remove any stray minidisks from the foriegn
  541.     drive.
  542.  
  543.     Simple procedure: *IF* you are sure that the drive to be added had NO
  544.                       minidisks on it, all you have to do is:
  545.  
  546.        1) Plug in the new drive, observing that the terminator is removed.
  547.           Only one disk must have a terminator, with one controller card,
  548.           If you have a system with more than one controller, follow the cable
  549.           set for each controller.  Only one drive for each set must have a
  550.           terminator resistor installed.
  551.  
  552.        2) Use the 'minidisks' command to manage the drive, add minidisks,
  553.           filesystems, and enjoy.  Your work is done.
  554.           
  555.     Complex procedure:  However... If the new drive had minidisks already on
  556.                         it, and worse, SYSTEM minidisks on it, AIX and VRM
  557.                         will get VERY confused about what minidisks are what.
  558.                         Use this procedure if you are not sure what minidisks
  559.                         may be on the drive, if any.
  560.  
  561.     This is the ONLY safe way to check out foriegn disks.
  562.  
  563.     Don't try to boot your AIX system just after adding it to the system. 
  564.  
  565.        1) Boot the diagnostics disks, and see what drives are found.
  566.           Use the option 'show all installed options' selection of the
  567.           utilites portion of the diagnostics.  Make sure that the terminator
  568.           is installed correctly as shown in the hardware setup FAQ or manuals.
  569.           Remember, only the last drive in the chain for each controller just
  570.           have a terminator pack. 
  571.  
  572.        2) I like to test the drive with diagnostics and make sure it is at
  573.           least responding to initial selection.
  574.  
  575.        3) Boot up the VRM diskette #1 and use the VRM maint utility commands 
  576.           'qi' and its other very strange commands to display all minidisks on
  577.           each and every drive.  Write down the IODN and IOCN numbers on each is
  578.           installed drive. 
  579.  
  580.           If the NEW drive has any VRM minidisk numbers (32760 and 32766) AND
  581.           AIX system minidisks (16384 and up to 19999).  VRM will get VERY
  582.           confused about what VRM and AIX filesytems are what. It seems that
  583.           VRM goes by the IOCN/IODN numbers to figure out what partitions
  584.           are what, and gets very confused if there are duplicate partition
  585.           numbers.  To clear this up continue with step 5. 
  586.  
  587.        4) If ALL the minidisks are over 20000 and less than 32760 in number,
  588.           AND *NONE* of the minidisks has the 'PgSpace' marker, you can do one
  589.           of two procedures:
  590.  
  591.              A) Exit the VRM utilites and re-boot your normal AIX system, then
  592.                 use the 'mdrc' command to recover any filesystems and minidisks
  593.                 that were on the 'new' drive.  The mdrc (minidisk recovery)
  594.                 command reads the minidisk partition table, and re-writes it
  595.                 and resyncronizes the /etc/system and /etc/filesystems files
  596.                 so that the numbers on it and the system tables will not
  597.                 conflict with existing minidisk numbers.  This procedure will
  598.                 rename any mount points on the 'new' filesystems to 
  599.                 /tmp/directory/hd## matching the renamed 'hd' numbers that will
  600.                 be assigned to the added drive.
  601.  
  602.              B) Use the VRM install utilities and use the delete minidisk
  603.                 comand descrived in step 5A to delete any or all unneeded
  604.                 minidisks.  If any minidisks are left, then use step 4A on
  605.                 the disk to recover any remaining minidisks, and syncronize
  606.                 the system tables.
  607.  
  608.        5) If some or all the minidisks are under 20000 in number OR there are
  609.           minidisks in the 3276x range, OR one of the minidisks has a VRM
  610.           'PgSpace' marker, problems can occur.
  611.  
  612.           You can choose several options:  A) Delete everything on the new
  613.           drive,  B) Delete some minidisks and recover what is left, or
  614.           C) attempt to recover all minidisks, including the 'system' ones.
  615.          
  616.           While following these proceedures, BE CAREFUL on what drive is called
  617.           0 and 1 and 2.  Drive 0 normally is the top back drive connected to
  618.           the C1 connector.  Drive 1 is the bottom back drive connected to the
  619.           D1 connector, and drive 2 is the front drive bay connected to the E1
  620.           connector. Things can get VERY confused if you have a system with two
  621.           controller boards in slots 1 and 2.  A mis-cabling by some other
  622.           person can scramble the drive numbering.   
  623.  
  624.              A) You can remove all the minidisks on the drive by using the
  625.                 delete minidisk command 'dlmd', to delete any of the possibly
  626.                 duplicate minidisk(s).  If any to be removed are a pagespace,
  627.                 follow the procedure in step 5C2 below prior to deleting that
  628.                 type of minidisk. The syntax of the delete command is:
  629.  
  630.                      dlmd <minidisk_id> <reald>
  631.  
  632.                      minidisk_id = IODN or name of minidisk being deleted.
  633.  
  634.                      reald = The fixed disk IODN on which the minidisk resides.
  635.                              If you have more than one minidisk with the same
  636.                              name on different drives you *MUST* specifiy this
  637.                              parameter.  The number to be used is the disk
  638.                              drive NUMBER (0,1 or 2).
  639.  
  640.                 Once all old minidisks are gone, remove the VRM utility disk,
  641.                 re-install your other disks (if you removed them), and reboot
  642.                 AIX and use the now empty disk as normal.
  643.  
  644.              B) Using the 'dlmd' command as described in procedure 5A above,
  645.                 delete any system minidisks from the new drive, leaving the
  646.                 'user' minidisks (greater than 20000 and less than 32767).
  647.                 Continue with step 4A above to recover the filesystems.
  648.  
  649.              C) To recover ALL minidisks for examination, use the VRM utilities
  650.                 to remove the special VRM markers from the minidisks on the
  651.                 new drive.   There are three special case filesystems:
  652.  
  653.                    1) If any have the 'PgSpace' marker, it is a paging area,
  654.                       and is most likely currently in use by this boot of VRM
  655.                       (from the utilities!).  Deleting it now can cause a run
  656.                       error. First, unmark the minidisk as a pagespace with
  657.                       the utility command 'setattr'. Reboot the VRM utilities,
  658.                       and then remove any minidisk(s) that were in use as
  659.                       pagespace (there is no AIX filesystem on it and nothing
  660.                       generally of use anyway).
  661.  
  662.                    2) If any minidisks have the IODN of 32760 and have the
  663.                       'VRM' marker, AND you want to recover it as a regular
  664.                       filesystem minidisk, remove the VRM marker from the
  665.                       minidisk with 'setattr'.  You can also use the setattr
  666.                       command to remove the read-only status of the minidisk.
  667.  
  668.                    3) If the '/' (root) filesystem exists with IODN 16384 on
  669.                       the drive, remove the 'IPL' marker from the minidisk with
  670.                       'setattr'.
  671.  
  672.                 Then continue with step 4A above using the AIX/RT 'mdrc'
  673.                 command to renumber and rename the remaining possibly duplicate
  674.                 minidisks.
  675.  
  676. ------------------------------
  677. Q.12 - The disk I have is one of the IBM supported disks, but it can't be
  678.        found by diagnostics, or AIX.
  679.  
  680.       The most likely cause of this problem is the IBM supplied minidisk
  681.       partition table, and the defect map area has been removed by some 
  682.       method.  A full reformat with a non-AIX/RT computer is the usual
  683.       cause of this problem.  To add this disk, follow the procedures described
  684.       in Q.13 below for adding a ODM ESDI drive to the system.  When you
  685.       get to the part on specifying the disk parameters, use the option 
  686.        '1 - Specify a known device.' to fill in the disk parameters.
  687.  
  688. ------------------------------
  689. Q.13 - What is the procedure for adding a Non-IBM ESDI or MFM hard disk
  690.        with AIX V2.
  691.  
  692.      To use a NON-IBM ESDI drive on an RT, it will have to be very
  693.      close in its geometry to one of the IBM supported drives.
  694.      I have not yet tried to use ESDI drives with larger than 310 Mbytes
  695.      of space with AIX.
  696.  
  697.      To be able to properly use the drive, it will have to be prepared
  698.      in two seperate formatting steps.
  699.  
  700.      First, shutdown the system as normal. 
  701.      I personally like to work on new disk drives with NO other drives
  702.      installed in the system.  The serves several purposes.  
  703.  
  704.         1) If there is anything wrong with the drive, it won't cause problems
  705.            the other disk drives in the system.
  706.         2) If you make an error specifiying any arguments or commands with
  707.            the diagnostics or the VMF utilities, you won't accidently
  708.            damage any of the information on your other drive(s).
  709.  
  710.      The RT employs a specially cut and twisted drive control cable, 
  711.      allowing all hard drives to be jumpered for drive select 2.
  712.      Examine the disk drive electronics, and set the drive select jumpers
  713.      for the drive to DS2.  Double check other jumpers if necessary on 
  714.      the drive.  Some drives have jumpers to control the number of sectors
  715.      per track, and timing adjustments.  Look at the ESDI drive chart in 
  716.      this FAQ and pick a setup that is close in sectors to the IBM drives.
  717.      The larger drives usually use from 34 to 36 sectors per track.
  718.      If you are following my precaution for testing the drive by itself,
  719.      make sure that the proper value and type of terminator resistor is
  720.      installed in the drive, as this will be the last (only) drive in the
  721.      chain of drives in the system.
  722.      
  723.      Install the drive in one of the open drive bays. Make sure that the drive
  724.      is plugged into the proper power cable.  The tower model 6150 RT as the
  725.      following drive bay locations.  Drive bay 'C' is the top back full height
  726.      drive bay, and uses power connector P13.  Bay 'D' is the bottom back bay,
  727.      and uses power connector P14, and bay 'E' is the front full height bay 
  728.      just below the two half height floppy drive bays.
  729.      If this is the only drive in the system, put it in bay 'C'.
  730.  
  731.      Unfortunately the desktop 6151 system has only one full height drive bay.
  732.      While the controller is capabile of running two (or three depending on 
  733.      the exact model controller) hard drives, I have not investigated using
  734.      two half height drives for this system.  That may be possible as long as
  735.      you don't exceed the capacity of the power supply.
  736.  
  737.      At this point, I like to boot the diagnostics diskettes and see if
  738.      the drive is recognized.  Choose the utility section of the diagnostics,
  739.      and select the 'show all installed devices'.  All adapters in the system
  740.      should be listed, including the fixed disk drive adapter.  This makes 
  741.      sure that the adapter is still functioning.  Usually the drive itself 
  742.      will NOT show up in the attached devices list, even if everything is 
  743.      correct with the hardware. The AIX RT diagnostics are rather dumb and
  744.      will not understand the drive and its geometry if there is no AIX style
  745.      minidisk partition table on the drive. 
  746.  
  747.      If the new drive DOES show up, the diagnostics will show its position and
  748.      size if it is an IBM drive. Unless you would like to completely reformat
  749.      the drive you should skip to the FAQ section on adding a drive with
  750.      existing AIX formatting to the system.  There may be minidisks on the
  751.      drive that can conflict with your system.  If you do wisk to reformat
  752.      this drive, skip past the paragraphs below about VRM formatting.
  753.  
  754.      We now have to assume that the ESDI drive is working correctly, as 
  755.      none of the AIX or diagnostics tests will show the drive as operable yet.
  756.      The new drive must be formatted with the VRM installation disks.  This
  757.      formatting will put a new minidisk partition table on the drive, and
  758.      also will create the VRM bad track map table on the drive (empty), and 
  759.      the geometry information record will be written to the drive.
  760.  
  761.      Put disk 1 of the VRM install disks in the floppy drive, and boot the
  762.      system from the floppy. Use the following procedure to walk thru the
  763.      menus of the VRM utilities and the VRM format command.
  764.  
  765.      When the VRM install disks boot up, they will ask you for your keyboard
  766.      language, choose the proper menu item and press enter.  Next a menu
  767.      of VRM options will be displayed. 
  768.  
  769.      * Choose menu option 7, "Maintenance Facility"
  770.      
  771.      You will be given a command line interface with a prompt of ">". 
  772.      To get help with any comand type 'help commandname".  The screen will
  773.      not scroll when the screen is full with these utilities. Press F1 to 
  774.      see more of the screen.
  775.  
  776.      Assuming that the drive is in bay C, and all by itself, type the
  777.      following command to start formatting that drive:
  778.  
  779.         format 1
  780.  
  781.      Drive bay C is drive 1, bay D is 2, and bay E is 3.  Systems with
  782.      two EESDI controllers thus have drives 1,2,3 on the first adapter
  783.      and drives 4,5,6 on the second adapter.
  784.  
  785.      * A display menu of adapters in the system will now be shown, and the  
  786.        attached drive numbers that may be formatted.  At the prompt to
  787.        continue, press 'Y'
  788.  
  789.      VRM will complain that the drive is unreadable, with the following
  790.      message as there is not an existing partition table on the drive.
  791.      
  792.      * Drive is Un-readable.  No valid disks parameters can be located.
  793.        Do you want to specify parameters (y/n).
  794.  
  795.      Enter "y" to continue.
  796.  
  797.      A menu of selectable drive parameters will now be displayed that
  798.      looks like this:
  799.         1 - Specify a known device.
  800.         2 - Specify number of cylinders
  801.         3 - Specify number of heads
  802.         4 - Specify number of sectors per track
  803.         5 - Specify interleave factor
  804.        yes    6 - Specify cylinder where precomp begins.
  805.        yes    7 - Specify seek profile.
  806.         8 - Specify skew factor.
  807.         9 - Display configuration record
  808.            10 - Continue with format.
  809.            11 - Quit format command.
  810.  
  811.      If you have an IBM drive that has had its VRM minidisk table wiped out,
  812.      or a drive that exactly matches the geometry of an IBM drive, you can
  813.      choose menu option 1 and a menu of IBM known drives will be displayed.
  814.      Choosing a IBM drive type will then bring you back to this menu with
  815.      'yes' by all of the parameters that have been set.  If you have
  816.      a drive with different specifications, choose each menu option in
  817.      turn above and enter the proper value for your drive.  As each option
  818.      is specified, and 'yes' will be entered next to that menu option.
  819.      Note: ESDI drives do not need menu option 6 or 7, that is why the
  820.      'yes' is already on those options.
  821.  
  822.      When you have finished specifying the settings, menu option 9 will
  823.      give you a summary of the settings, or allow you to display the
  824.      current settings that a drive already has.
  825.      When ready to continue formatting, choose option 10.
  826.  
  827.      As the drive formats it will show you the cylinder number in a running
  828.      display.  If there are problems, you will see the following error
  829.      message, or similar:
  830.        Start I/O failed. IODN=1315  return code= -6
  831.        I/O error during format operation.
  832.           drive 1
  833.           cyl   0
  834.           head  0
  835.        Do you want to continue format?
  836.    
  837.      This error indicates an immediate failure (cyl=0, head=0) and 
  838.      most likely the drive is not responding, or a gross misarrangement
  839.      of geometry settings.  A 'n' will abort the format operation, a 'y'
  840.      will attemt to continue.  A very bad track on a drive can also show
  841.      this error, but the cylinder and head numbers must be non-zero. 
  842.      A drive with cylinder zero defective is most likey useless.
  843.     
  844.      Assuming that the VRM format operation has completed, now you need to
  845.      boot the diagnostics disks.
  846.      VRM formatting will now allow the diagnostics to be able to find and
  847.      understand the drive.. HOWEVER, the bad track map is not filled in by
  848.      the VRM formatting. 
  849.  
  850.      After booting the diagnostics, choose menu option two (2), "Utilities".
  851.      This will bring up the "Utility Selection" menu.  Choose option three (3),
  852.      "Fixed Disk Utilities".  Option one (1) on this menu will be
  853.      "Format a Fixed disk".  Make sure that you select the correct disk. 
  854.      Confirmation of format will not be requested.  The disk size will be
  855.      known from the already installed minidisk partition table from the VRM
  856.      formatting step.  After formatting is complete, exit the diagnostics,
  857.      and remove the diagnostics diskette, and enjoy your new disk drive.
  858.  
  859. ------------------------------
  860. Q.14 - What is the procedure for using non-IBM SCSI disks with AIX V2.
  861.  
  862.      As mentioned in the hardware FAQ, the IBM RT SCSI adapter uses
  863.      a differential interface, instead of a single ended interface 
  864.      like that used in most workstations.  This makes it electriclly
  865.      incompatible with most SCSI drives on market.
  866.  
  867.      However, all is not lost. :-)
  868.  
  869.      Some vendors do offer their SCSI drives with an optional differential
  870.      interface.  There also exist a couple of manufacturers of
  871.      'Differential-to-single-ended' converter boxes.  These boxes allow
  872.      a bi-directional conversion of the SCSI bus and will allow attachment
  873.      of these single ended disk drives.
  874.      Newer IBM RS/6000 systems have optional differential interfaces
  875.      now available, and some SUN systems will be offerd with differential
  876.      interfaces.  This will most likely cause drive manufacturers start
  877.      to increase the availability of differential drives.
  878.  
  879.      Here is a procedure that works for me to attach SCSI disks from
  880.      non-IBM vendors to an RT running AIX 2.2.1.
  881.      
  882.      1) Get the geometry information for the drive and create a ddi
  883.     stanza file with the proper information.
  884.      
  885.        A) Use as a reference the ddi information for IBM's 9332 drive.
  886.           Copy the /etc/ddi/9332 entry to one of your own name,
  887.           such as /etc/ddi/wren7.
  888.       NOTE: The commented lines in the ddi stanza are IMPORTANT.
  889.           do not change them, or remove them.  They must follow
  890.           AFTER the entry being described.
  891.  
  892.       Find the following entries and change them to match the
  893.       characteristics of your SCSI drive:
  894.  
  895.       > If the the drive is confused about syncronous operations
  896.         set this to 'true' and the driver will not offer SYNC
  897.         as an option while setting up the data transfers:
  898.             (No Negotiate For Syncronous Transfer) == nnfst
  899.         nnfst = false
  900.  
  901.       > If necssary, adjust the number of allowed bad blocks.
  902.             noabb = 600
  903.               * Number of Allowed Bad Blocks
  904.  
  905.       > Here is one of the CRITICAL parameters!  Make sure that
  906.         this value matches the drives actual number of usable 
  907.         blocks on the device, *LESS* any CE cylinders and reserved
  908.         track areas. 
  909.              nobod = 391182 
  910.               * Number Of Blocks On Device.
  911.  
  912.       > AIX filesystems and drives use an underlying physical block
  913.         size of 512 bytes.  All the drives I have used have been
  914.         able to select 512 as the block size.  (This value is 
  915.         specified in 256 byte increments in the ddi.. 2*256=512)
  916.             nobub = 2
  917.               * Num of 256-Byte Units/Block 
  918.  
  919.       > The drives actual number of sectors per track is used by
  920.         AIX and VRM for constructing good accessing inode superblock
  921.         structures, so set this value as per the vendors 
  922.         specifications.
  923.            nospt = 17
  924.               * Number of Sectors per Track
  925.  
  926.        B) Change the string /d9332/ to /wren7/.  I never went over
  927.       5 characters, just made sure that the strings started with
  928.       a letter, and were 5 characters long.  The value used for
  929.           the string is not important, just be unique among the entries
  930.           if you have more then one type of SCSI disk, and it matches
  931.       the *NAME* of the file in /etc/ddi directory.
  932.  
  933.        C) Next, we have to setup some things by hand that the 'devices'
  934.           command would normally do for us.  The disk drives scsi address
  935.           and the dma channel to use when accesing the SCSI card/device.
  936.     
  937.           * Find the stanza entries in your newly cloned ddi entry
  938.             that now read:
  939.  
  940.             wren7scsi1:
  941.                 biopa = d50
  942.                 cn = 6
  943.             * DMA Channel Number            * 0, 1, 3, 5, 6, 7
  944.  
  945.             wren7scsi2:
  946.                 biopa = 950
  947.             cn =5
  948.             * DMA Channel Number            * 0, 1, 3, 5, 6, 7
  949.  
  950.       - The entries that start 'wren7scsi1' sets the addressing
  951.             parameters for accessing the SCSI card 1.  If this is your
  952.             very first attached SCSI device, make sure that the DMA
  953.             channel number used is not in use by any other cards in
  954.             your system.  The 'biopa' and 'cn' paramemters MUST track
  955.             togther.  The 'cn' paramenter sets the dma channel number.
  956.             The 'biopa' sets the base io address for the card.
  957.  
  958.           - Find the entry that reads: wren7scsi### 
  959.             
  960.             * The following stanzas are 9332 DASDs on the first SCSI adapter
  961.  
  962.             wren7scsi100:
  963.                 biopa = d50
  964.                 cn = 6
  965.             * DMA Channel Number            * 0, 1, 3, 5, 6, 7
  966.  
  967.             The name of the stanza is the entries to be used for
  968.             the individual instance of a device.  The name is
  969.                wren7scsi%$#
  970.            
  971.              Where 
  972.                % = The card number (1 or 2)
  973.                $ = The device SCSI ID (0-6)
  974.                % = the device LUN ID (0-1)  
  975.  
  976.         Make the same change to the 'cn' and 'biopa' values.
  977.             (if necessary)
  978.  
  979.        D) Now comes the critical step, editing the /etc/system file.
  980.           Make a bakup copy of /etc/system.. syntax errors in this file
  981.           will make your system unbootable!  Make sure that you have
  982.           a working copy of your 'Installation/maint' diskette around
  983.           to be able to get back in and repair any botched attempts.
  984.  
  985.           Add the 'hdisk' by manually adding the stanza(s) for the
  986.           disk.  This would normally have been done by the devices command.
  987.  
  988.           External disks start with 'hdisk6'.  hdisk0,1,2 are internal
  989.           on the first EESDI adapter.  hdisk3,4,5 are on the possible
  990.           portalble EESDI adapter.   Pick a uunique IODN number for the
  991.           stanza.  I usually start with 2310.  The scsi id and scsi card
  992.           are pointed to by the 'nname=' and 'use=' stanzas of this
  993.           entry.  Make sure the 'file=', 'kaf_file=' and 'kaf_use='
  994.           stanzas point at your newly added 'ddi' file in /etc/ddi.
  995.  
  996. hdisk6:
  997. * MAXSTOR XT-8760 SCSI Disk Drive
  998.     aflag = true
  999. * IBM SCSI Adapter, Primary
  1000.     adp = scsi1, scsi2
  1001.     config = scsihelp
  1002.     crname = false
  1003.     dname = hdisk
  1004.     driver = vscsi
  1005.     dtype = scsi
  1006. * IBM RT PC SCSI Devices
  1007.     file = /etc/ddi/max
  1008.     iodn = 2310
  1009.     kaf_file = /etc/ddi/max
  1010.     kaf_use = kmax
  1011.     maxdev = 5
  1012.     name = max
  1013.     noddi = false
  1014.     nodl = false
  1015.     noduplicate = false
  1016.     noipl = true
  1017.     noshow = false
  1018.     nospecial = true
  1019.     shared = true
  1020.     specproc = /etc/scsiproc
  1021.     switchable = false
  1022.     vint = 4
  1023.     modes = rw-rw----
  1024.     nname = maxscsi130
  1025.     use = dmaxscsi130
  1026.  
  1027.        E) Activate the usage of the new SCSI disk by the 'varyon' command.
  1028.           The first time you issue this command, the varyon may fail on some
  1029.           SCSI disks.  The pending Unit Check from coming ready will confuse
  1030.           the vary commands processing.  The vary processing will discover
  1031.           (hopefully) that the minidisk partition table is missing, and will
  1032.           proceed to create one.  Depending on the formatting or prior data
  1033.           on the drive, this step can fail, if the varyon command gets confused
  1034.           about if a valid minidisk partition table is present.   If this
  1035.           happens, take the drive to some KIND soul and have them write ZEROS
  1036.           on the first 100 sectors of the drive, and re-attach, and re-issue
  1037.           a varyon command (most likely twice).  If everything is correct
  1038.           the vary will complete without errors, and a subsequent 
  1039.           'minidisks' command will show that space as available.
  1040.  
  1041.        F) Modify the system to varyon the SCSI disk(s) on each boot.
  1042.           Add the following command to the end of /etc/rc.include
  1043.                varyon -q -d hdisk6
  1044.                varyon -q -d hdisk7 (or however many disks you have)
  1045.  
  1046.           You might have to issue the command twice for each drive.
  1047.  
  1048.    [ Note:  It has been a while since I have personally done this, but
  1049.      the general procedure does work.  I will re-verify it shortly. - MW ]
  1050.  
  1051. ------------------------------
  1052. Q.15 - The diagnostics start booting ok, then fail with a LED code.
  1053.        What do the codes mean? 
  1054.  
  1055.       This problem can caused by several problems among which are:
  1056.          1)  Unrecognized floppy controller.
  1057.          2)  Unrecognized or missing  RT approved display adapter.
  1058.          3)  Serious malfunction one or more adapters.
  1059.          4)  Serious malfunction in a portion of the processor or memory
  1060.              cards installed.
  1061.  
  1062.       Usually, the failing component code will be the last displayed
  1063.       LED value.  Reference the Hardware FAQ for a list of POST LED
  1064.       codes.
  1065.  
  1066.       These additonal LED codes can be found for problem areas:
  1067.  
  1068.         Steady code LED values:
  1069.          22 - Boot diskette not found or failing.
  1070.          25 - Software problem during soft IPL, power off and retry.
  1071.          81 - 5085 failure, make sure it is powered on, and cables secure.
  1072.          94 - Failing/missing display adapter.  Use OEM display adapter
  1073.               diskette to continue.
  1074.          99 - Keylock is in locked position.
  1075.  
  1076.         Blinking code LED values:
  1077.          02 - Damaged diagnostic diskette, try another.
  1078.          30 - Damaged diagnostic diskette, try another.
  1079.          99 - Undetermined Problem, Possible failing:
  1080.               Keyboard, Diskette error, FP unit, memory card,
  1081.               or processor card.
  1082.  
  1083. ------------------------------
  1084. Q.16 - How do I setup and use the AT Simulator.
  1085.  
  1086.       [ Open for adoption by someone very familiar with PC Simulator
  1087.         experience! - MW ]
  1088.  
  1089. ------------------------------
  1090. Q.17 - What books comprise a full set of AIX/RT documentation?
  1091.  
  1092.      Manuals marked with an @ sign were shipped with every system
  1093.      that had ordered AIX/RT.  Manuals marked with a % shipped with
  1094.      ALL systems regardlesss of the OS.
  1095.      
  1096.     NOTE: The "SBOF" (special bill of forms) manual numbers included the
  1097.           manual and a binder.  Some SBOF numbers were used to group
  1098.           sets of related manuals into special ship groups as well.
  1099.  
  1100.  IBM RT Bibliography:
  1101.  
  1102.  General Information.
  1103.  
  1104.   -           GC23-0783  IBM RT PC General Information
  1105.   -           GC23-0784  IBM 6150 Concepts
  1106.   -           GC23-2002  AIX Family Definition
  1107.   -           GC23-2129  AIX/RT General Information
  1108.   -           GH23-0150  AIX/RT Hardware/Software Catalog
  1109.   -           SA23-1057  IBM RT PC Technology
  1110.  @- SBOF-1817 SC23-0788  Bibliography and master index AIX 2.2
  1111.  
  1112.  Planning, Installation and Operation.
  1113.  
  1114.   -           GA23-1058   Planning and Site Preparation Guide
  1115.   -           GA23-1061   Software Planning Guide
  1116.   -           GC23-0782   IBM RT Planning Guide
  1117.  @- SBOF-1816 SC23-2012   Installing VRM 2.2
  1118.  @- SBOF-1817 SC23-2013-0 Installing and Customizing AIX 2.2
  1119.  @- SBOF-1817 SC23-2013-1 Installing and Customizing AIX 2.2.1 P/N 27F4352.
  1120.  @- SBOF-1817 SC23-2023-1 Bibliography and Master Index
  1121.  %- SBOF-1828 SA23-2607   Guide to Operations P/N 22F9801
  1122.  %- SBOF-1829 SA23-2608   User Setup Guide P/N 22F9802
  1123.  %            SA23-2609   Options Installation P/N 22F9802
  1124.  
  1125.  Hardware.
  1126.  
  1127.   - SBOF-0126            Keyboard Description and Character Reference
  1128.   - SBOF-1826 SV21-8025  (old) 6150 Syst. Unit Hardware Maintenance and Service
  1129.   - SBOF-1826 SA23-2605  6150 Syst. Unit Hardware Maintenance and Service
  1130.              Also orderable as P/N 22F9803.
  1131.   - SBOF-1827 SV21-8026  6151 Syst. Unit Hardware Maintenance and Service
  1132.   - SBOF-1830 SV21-8024  (old) Hardware Technical Reference
  1133.   - SBOF-1830 SA23-2610  Hardware Technical Reference Vol 1  P/N 22F9805
  1134.   -           SA23-2611  Hardware Technical Reference Vol 2
  1135.   -           SA23-2612  Hardware Technical Reference Vol 3
  1136.  
  1137.  Problem determination.
  1138.  
  1139.   - SBOF-1822 SC23-2018  AIX 2.2 System Messages Reference
  1140.  @- SBOF-1825 SA23-2604  Problem Determination Guide: Hardware P/N 22F9800.
  1141.  @            SA23-2603  Problem Determination Guide: AIX      P/N 22F9815.
  1142.  
  1143.  Technical References.
  1144.  
  1145.   -           SC23-2022  VRM 2.2 Quick Reference fold out card
  1146.   - SBOF-1517            AIX 2.2 Tech.Ref. + VRM 2.2 Tech.REF.
  1147.   - SBOF-1808 SC23-2006  AIX 2.2 Device Driver Development Guide P/N 08F3424
  1148.              4 Samples diskettes included:
  1149.              P/N's 92X1326, 92X1328, 92X1329, 92X1337
  1150.   - SBOF-1818 SC23-2014  VRM 2.2 Virtual Resource Manager Programming Reference
  1151.                          (formerly VRM Technical Reference Vol.1) P/N 08F3410
  1152.               SC23-2015  VRM 2.2 Virtual Resource Manager Device Support
  1153.                          (formerly VRM Technical Reference Vol.2)
  1154.   - SBOF-1823 SC23-2019  AIX 2.2 Technical Reference Vol.1
  1155.               SC23-2020  AIX 2.2 Technical Reference Vol.2
  1156.   - SBOF-1823 SC23-2125  AIX 2.2.1 System calls and Subroutines    P/N 27F4355
  1157.                          (formerly Technical Reference Vol.1)
  1158.               SC23-2126  AIX 2.2.1 Files and Extensions            P/N 27F4355
  1159.                          (formerly Technical Reference Vol.2)
  1160.  
  1161.  AIX Operating System.
  1162.  
  1163.   -           SX23-0713  AIX Quick Reference
  1164.   - SBOF-0157            AIX Text Formatting Guide
  1165.  @- SBOF-1809 SC23-2007  Using the AIX 2.2 Operating System        P/N 08F3406
  1166.  @- SBOF-1810 SC23-2008  Managing the AIX 2.2 Operating System     P/N 22F4353
  1167.  @- SBOF-1814 SC23-2011  AIX 2.2 Commands Reference Vol.1          P/N 27F4354
  1168.  @            SC23-2081  AIX 2.2 Commands Reference Vol.2
  1169.   - SBOF-1819 SC23-2016  AIX 2.2 Programming Tools and Interfaces
  1170.  
  1171.  AIX Shells.
  1172.  
  1173.  @- SBOF-0149            Usability Services Reference
  1174.  @            SX23-0714  Usability Services Quick Reference
  1175.   - SBOF-0158            AIX DOS Services Reference
  1176.               SX23-0717  DOS Services Quick Reference
  1177.  @- SBOF-0160 SC23-0799  INed (Editor)
  1178.  @            SV21-8081  Using INed Editor
  1179.  @            SX23-0715  INed Editor Quick Reference
  1180.   - SBOF-0276            X-Windows version 1.1 Guide and Reference
  1181.   - SBOF-1868 SC23-2017  X-Windows version 2.1 User's Guide
  1182.               SC23-2118  X-Windows version 2.1 Programmer's Guide
  1183.  
  1184.  Keyboard templates.  (Packaged with Using the AIX Operating System)
  1185.   - SBOF-1809 SX23-0743  RT PC AIX Functions for the VT100 keyboard.
  1186.   -           SX23-0744  RT PC AIX Functions for the VT220 keyboard.
  1187.   -           SX23-0745  RT PC AIX Functions for the IBM3161, IBM3162 and 
  1188.                          IBM 3163 keyboards.
  1189.   -           SX23-0746  RT PC AIX Functions for the ASYNC Terminal Emulation
  1190.   -           SX23-0747  RT PC AIX Functions for the IBM RT PC Keyboard.
  1191.  
  1192.  Data Management.
  1193.  
  1194.   -           SV21-8015  Data Management Services
  1195.   -           SX23-0718  SQL/RT Quick Reference
  1196.   - SBOF-0139            Easy SQL/RT User's Guide
  1197.   - SBOF-0140            SQL/RT Interactive Command User's Guide
  1198.   - SBOF-0141            SQL/RT Programmer's Guide
  1199.  
  1200.  Programming languages.
  1201.  
  1202.   -           SC23-2106  VS COBOL Language Reference
  1203.   -           SC23-2107  VS COBOL User's Guide
  1204.   -           SC23-2108  VS COBOL Runtime Guide
  1205.   -           SC23-2124  AIX/RT Modula-2 Develop. Syst. User's Guide
  1206.   -           SV21-8016  Pascal Compiler Fundamentals
  1207.   -           SV21-8017  Pascal Compiler Language Reference
  1208.   -           SV21-8018  Basic Language Reference
  1209.   -           SV21-8019  Basic Language Handbook
  1210.   -           SV21-8027  FORTRAN 77 Language Reference
  1211.   -           SV21-8062  LISP Development System 1.0.1 Guide and Ref.
  1212.   -           SX23-0716  C language Quick Reference
  1213.   - SBOF-0133            Assembler Language Reference Manual
  1214.   - SBOF-0134            C Language Guide and Reference
  1215.   - SBOF-0105 SH23-0127  VS PASCAL User's Guide
  1216.               SH23-0128  VS PASCAL Reference Manual
  1217.               SH23-0131  VS Language/Op. Syst. Interface Lib. Ref. Manual
  1218.   - SBOF-0106 SH23-0129  VS FORTRAN User's Guide
  1219.               SH23-0130  VS FORTRAN Reference Manual
  1220.               SH23-0131  VS Language/Op. Syst. Interface Lib. Ref. Manual
  1221.  
  1222.  Communications.
  1223.  
  1224.   -           SC33-0630  X.25 Communications Support: User's Guide
  1225.   -           SC33-0631  X.25 Communications Support: Programmer's Guide
  1226.   -           SK2T-0291  IBM Token-Ring Network Adapter Tech. Ref.
  1227.   -           SV21-8031  INmail/INnet/FTP
  1228.   -           SV21-8032  3278/79 Emulation
  1229.   -           SV21-8086  Using INmail/INnet/FTP/connect
  1230.   -           SX23-0727  Communications Guide Quick Reference
  1231.   - SBOF-0107 SC23-2060  AIX/RT WHIP 1.1 Guide and Reference
  1232.   - SBOF-0131            Base PC Network Services
  1233.   - SBOF-0150            SNA Services Guide and Reference AIX 2.1
  1234.   - SBOF-0151            Network-PLUS 3270 SNA User Guide
  1235.   - SBOF-0152            Network-PLUS 3270 BSC User Guide
  1236.   - SBOF-0153            Network-PLUS RJE SNA User Guide
  1237.   - SBOF-0154            Network-PLUS RJE BSC User Guide
  1238.   - SBOF-0155            Network-PLUS Programming Interface Manual
  1239.   - SBOF-0156            AIX Communications Guide
  1240.   - SBOF-1807 SC23-2005  Interface Program for use with TCP/IP AIX 2.2
  1241.   - SBOF-1811 SC23-2009  SNA Services Guide and Reference AIX 2.2
  1242.   - SBOF-1870            AIX/RT NFS User's Guide
  1243.  
  1244.  PC-AT Compatibility Services.
  1245.  
  1246.   -           SC23-2042  AIX Access for DOS Users, Administrator's Guide
  1247.   -           SC23-2041  AIX Access for DOS Users, User's Guide
  1248.   -           SV21-8028  AT Coprocessor Services User's Guide
  1249.   -           SV21-8029  AT Coprocessor Technical Reference
  1250.   - SBOF-0158            DOS Services Reference
  1251.   - SBOF-1813 SC23-2010  AT Simulator Guide and Reference P/N 27F4360
  1252.  
  1253.  IBM 6192 Expansion Unit.
  1254.  
  1255.   -           SA23-2600  Setup, Options Installation
  1256.   -           SA23-2601  Hardware Maintenance and Services
  1257.   -           SA23-2616  Technical Reference
  1258.  
  1259.  IBM 6156 Portable Disk.
  1260.  
  1261.   -           SA23-2613  Hardware Maintenance and Services
  1262.   -           SA23-2614  Setup, Options Installation, Tech Info Manual
  1263.  
  1264.  Plotters.
  1265.  
  1266.   -           GA66-0500  IBM 6180 Color Plotter Guide to Operations
  1267.   -           GA66-0501  IBM 6180 Color Plotter Programming Manual
  1268.   -           SH23-0089  IBM 6184 Color Plotter Programming Manual
  1269.   -           SH23-0090  IBM 6184 Color Plotter HW Maintenance & Service
  1270.   -           SH23-0091  IBM 6184 Color Plotter Guide to Operations
  1271.   -           SH23-0092  IBM 6186 Programming Manual
  1272.   -           SH23-0093  IBM 6186 Guide to operations
  1273.   -           SH23-0094  IBM 6186 Hardware, Maintenance and Service
  1274.  
  1275.  IBM 9332 Disks.
  1276.  
  1277.   -           SA21-9532  Planning Manual
  1278.   -           SA21-9533  Installation Manual
  1279.   -           SA21-9534  Analyzing Problems Manual
  1280.   -           SA21-9535  Reference Code Guide
  1281.   -           SY31-0685  Service Guide
  1282.  
  1283.  Professional Graphics Series.
  1284.  
  1285.   -           SV21-8058  Graphics Development Toolkit
  1286.   -           SV21-8059  Plotting System Programmer's Guide
  1287.   -           SV21-8060  Graphical File System Programmer/User's Guide
  1288.   -           SV21-8061  Graphics Terminal Emulator User's Guide
  1289.  
  1290.  Personal graPHIGS.
  1291.  
  1292.   -           SC33-8100  Introducing graPHIGS
  1293.   -           SC33-8102  Understanding graPHIGS
  1294.   -           SC33-8103  Writing Applications
  1295.   -           SC33-8104  Subroutine Reference
  1296.   -           SC33-8105  Messages and Error Codes
  1297.   -           SC33-8106  Installing Personal graPHIGS
  1298.   -           SC33-8107  Programmer's Pocket Reference
  1299.   -           SC33-8109  Problem Diagnosis
  1300.   -           SC33-8110  Technical Reference
  1301.   -           SC33-8111  User's Guide for GKS Compatibility
  1302.   -           SC33-8112  Subr. Ref. for GKS Compatibility
  1303.   -           SC33-8113  Pocket Ref. for GKS Compatibility
  1304.   -           SC33-8181  graPHIGS Systems
  1305.   -           SC33-8182  graPHIGS User
  1306.   -           SC33-8183  graPHIGS API Technical Reference
  1307.   -           SC33-8184  Programmer Reference
  1308.   -           SC33-8185  GKS Compatibility Opt. User
  1309.   -           SC33-8186  GKS Compatibility Opt. Subr. Ref.
  1310.  
  1311.  IBM 5080/IBM 6150 Graphics System.
  1312.  
  1313.   -           GA23-0132  Problem determination guide
  1314.   -           GA23-0274  Operation
  1315.   -           GA23-027?  Information Reference Summary
  1316.   -           GA23-2005  System operation
  1317.   -           GA23-2007  Setup instructions
  1318.   -           GA23-2012  Principles of Operation
  1319.  
  1320.  IBM 5081 Graphic Display.
  1321.  
  1322.   -           GA23-1324  Problem determination
  1323.   -           GA23-2001  Problem determination card
  1324.   -           GA23-2007  Setup instructions
  1325.   -           GA23-2008  Site planning and preparation
  1326.   -           GA23-2009  Site planning and installation
  1327.   -           GA23-2012  IBM 5080 Principles of operation
  1328.   -           SY66-0103  IBM 5081-11 Maintenance Information
  1329.  
  1330. ------------------------------
  1331. Q.18 - How to change the 4 Mb filesize limit in AIX/RT.
  1332.  
  1333. Subject: File size limitation on AIX/RT
  1334.  
  1335. I have seen LOTS of complaints that AIX/RT can't handle files over
  1336. 4 Megabytes in size.  The system install default standard ulimit on 
  1337. maximum user file size is 8192 blocks in 512 byte blocks, or 4194304 bytes.
  1338.  
  1339. Changing the default ulimit is easily fixed by one of three methods:
  1340.  
  1341. 1) Raise the indidual users account default ulimit by adding the
  1342.    filesize field to his password entry.  The slash after the
  1343.    username is the size in BLOCKS to set the users ulimit.
  1344.   
  1345.      biguser:!:100:100:System Abuser/600000:/u/bigfilesys:/bin/sh
  1346.  
  1347.    This field is automatically added by the adduser command when 
  1348.    the 'filesize' field is non-blank.
  1349.    
  1350.    This allows setting different filesize limits based on each
  1351.    users login environment.
  1352.  
  1353. 2) Add the ulimit command to someplace in /etc/rc.include to increase the 
  1354.    ulimit of all processes, including daemons.
  1355.  
  1356. 3) Raise the entire default ulimit on a global basis.
  1357.    Edit /etc/environment file.  Be careful, this is NOT a shell script.
  1358.    Only selected variable assignments are allowed here.
  1359.    Add the following:
  1360.        FILESIZE=####
  1361.  
  1362.    Where #### is the maximum desired filesize in 512 byte blocks.
  1363.    Default value is 8192.
  1364.  
  1365.    NOTE: You must be at 2705 update level or later to be able to
  1366.    change the filesize limits via /etc/environment.  Also for ulimit
  1367.    to work correctly for rsh, update 2705 must be installed.
  1368.    NFS 1.1 needs at least update 1110 or later to fix ulimit problems
  1369.    on remote machines.
  1370.  
  1371. There is nothing that restricts a filesize on AIX/RT other than the
  1372. max inode pointer (signed int (2 Gig)) OR the filesystem size.  Since
  1373. AIX/RT cannot create filesystems that span volumes (like AIX V3 for
  1374. 6000's) that is your actual limit on filesize.
  1375.  
  1376. However...
  1377. Unfoortunately, there is a bug in VRM that will not let it address filesystems
  1378. on SCSI disks larger than 1 Gig. Worse, due to the VRM bug, it will wrap the
  1379. block pointer back to zero, destroying the minidisk partition table, *AND* the
  1380. first filesystem on the drive.  I have never had ESDI drives attached to an
  1381. RT larger than the 310 Mb drive type so I am not sure if this limit is a
  1382. problem for that driver.
  1383.  
  1384. ------------------------------
  1385. Q.19 - How to install a system image from tape.
  1386.  
  1387.    Here is a 'quick' install setup I got from a IBM tip..
  1388.    However, it does not seem complete to me... I guess that tape is
  1389.    restored from the install/maint diskette, without installing the
  1390.    initial set of 8 disks. Just VRM installed., and using the Install-
  1391.    maintence diskette, and selecting the tape drive as the install device.
  1392.  
  1393.    Note: This procedure assumes you have enough room in /tmp to hold
  1394.          the initial 8 diskette set.  Use another temporary work
  1395.          filesystem of your choice for the step 1 area.
  1396.  
  1397. HOWTO: Quick Install RT 6150 / 6151 
  1398.  
  1399. 1. Create an installable AIX 2.2.1 operating system tape.
  1400.  
  1401.         This is quicker to use than loading the 8 diskettes.
  1402.  
  1403.         cd /tmp
  1404.         restore -xvf /dev/fd0 >files.in
  1405.         .. load AIX 2.2.1 Base system program disks (PBEX8-PBEY5)
  1406.         sed 's/^Mx //' files.in > files.lst
  1407.         backup -ivf /dev/rmt0 -pY -C2000 -s4000 -d1000 <files.lst
  1408.  
  1409.         (Figures are for a DC300XLP tape - If you use a 6157-001 drive to 
  1410.         create the tape, then that tape can be read on either 6157-001
  1411.         or a 6157-002 drive).
  1412.  
  1413.         The undocumented -p can be used to create a packed backup. All files
  1414.         are passed through pack first. This uses less media, but tends to be
  1415.         slower. (I also had problems with files bigger than about 1 Mb, see
  1416.         later).
  1417.  
  1418. 2. Create set of bff (backup format file) images of all software.
  1419.  
  1420.         On a RT with sufficient disk space in /inst.images (say), as root:-
  1421.         ulimit 200000
  1422.         ln -s /inst.images/lpp.install /usr/lpp.install
  1423.         ln -s /inst.images/lpp.update  /usr/lpp.update
  1424.         mkdir /inst.images/tmp                          for workspace
  1425.         bffcreate -w /inst.images/tmp -v                for installp files
  1426.         bffcreate -w /inst.images/tmp -v -f outfile     for updates, bos, misc
  1427.  
  1428.         bffcreate can only use the specified directories; hence the symbolic
  1429.         links above. Installp files are created with names such as 'em78.01.03'
  1430.  
  1431. ------------------------------
  1432. Q.20 - How to control the "sound" of the keyboard.
  1433.  
  1434.         To control the speaker, use the command "sound":
  1435.            "sound -h"  speaker volume high
  1436.            "sound -m"   ..  medium
  1437.            "sound -l"   ..  low
  1438.            "sound -o"  all sound off  (including clicking)
  1439.  
  1440.         To control the click, use the command "sound":
  1441.            "sound -c"  keyclick on
  1442.            "sound -q"  keyclick off
  1443.  
  1444. ------------------------------
  1445. Q.21 - How to find the machine serial number.
  1446.  
  1447.        The serial number of the machine processor is unique and can be found
  1448.        with the command "uname -m".  This number is kept in the ROS on the
  1449.        processor card.  Changing the processor card, eg. upgrading to an APC,
  1450.        changes the serial number of your machine.
  1451.  
  1452.        This is NOT the serial number of the chassis.  That serial number is
  1453.        located on the 6150 machines on the top of the case, as well as 
  1454.        on the rating plate in the lower back inside next to the keyboard
  1455.        cable plug.
  1456.  
  1457. ------------------------------
  1458. Q.22 - How to change which adapter will be the console device.
  1459.  
  1460.        If you have more than one display adapter installed, which display
  1461.        the system uses as the console is determined by the order in which
  1462.        the lposts (loadable power on self test) are found. 
  1463.        There is a file for each device. Most of them are in /vrm/ldlist/posts.
  1464.  
  1465.        The "mvmd" command (described under the command "installp"!) will
  1466.        allow you to specify which display comes up when you IPL your machine.
  1467.        The change will remain in effect until the VRM is reinstalled or
  1468.        modified by another mvmd command.
  1469.  
  1470.        Assume your goal is to have the IBM 5151 come up instead of the
  1471.        IBM 6155, do the following:
  1472.           - sign on as superuser
  1473.           - make sure you are NOT in the /vrm directory
  1474.             issue the following command:
  1475.  
  1476.             mvmd -m /vrm/ldlist/lpcmod.0000.00 -p /vrm/ldlist/posts
  1477.  
  1478.        When you IPL again, the IBM 5151 will come up as console.
  1479.  
  1480.        With a normal VRM installl, and both a 5154 (EGA) and a 6154 
  1481.        (advanced color) display in an RT, when AIX boots, the 5154 becomes
  1482.        the console. To cause the 6154 to be the default, do the following:
  1483.          (this is all one command line)
  1484.  
  1485.             mvmd -m /vrm/ldlist/posts/lapa8c.0000.00 \
  1486.                  -f /vrm/ldlist/posts/ldskt1.0000.00
  1487.  
  1488.        Explanation:
  1489.        The RT PC looks at the /vrm/ldlist/posts directory to determine what
  1490.        display will be the console. Use:
  1491.             li -lSx /vrm/ldlist/posts | pg
  1492.  
  1493.        command to look at the directory. Somewhere in the list you will see
  1494.        the following entries:
  1495.  
  1496.           lapa8d.0000.00    (6153)
  1497.           llegam.0000.00    (5154)
  1498.           lapa8c.0000.00    (6154)
  1499.           lapa16.0000.00    (6155)
  1500.  
  1501.        The order of these entries determines the default display. The mvmd
  1502.        command changes this order.
  1503.        The -f(file) option of the mvmd command is used to specify the position
  1504.        in the directory list. The file specified with the -m option will be
  1505.        moved to a position following the file specified with the -f option.
  1506.  
  1507.        Use the "li -lSx /vrm/ldlist/posts | pg" command to view the order in
  1508.        which the displays will be chosen as the console display;
  1509.        then move the desired console display to the front of the list of
  1510.        displays. You can do this by finding the first display in the list,
  1511.        then noting which device is just above that display and using that
  1512.        device with the -f option of the mvmd command.
  1513.  
  1514.        For example, suppose the "li -lSx /vrm/ldlist/posts" command
  1515.        returned the following portion of the ldlist directory.
  1516.  
  1517.            lsound.0000.00
  1518.            ldisk0.0000.00
  1519.            ldisk1.0000.00
  1520.            ldskt1.0000.00
  1521.            lapa8d.0000.00 (6153)
  1522.            llegam.0000.00 (5154)
  1523.            lapa8c.0000.00 (6154)
  1524.            lapa16.0000.00 (6155)
  1525.            lmpel1.0000.00 (5081)
  1526.                  :
  1527.  
  1528.       Then to make the megapel display the default console display, notice
  1529.       that the first display listed is lapa8d.0000.00 (6153). The device
  1530.       directly above that is ldskt1.0000.00, so the command would be:
  1531.  
  1532.           mvmd -m /vrm/ldlist/posts/lmpel1.0000.00 \
  1533.                -f /vrm/ldlist/posts/ldskt1.0000.00
  1534.  
  1535.       You must be a member of the system group or operating with
  1536.       superuser authority to run "mvmd".
  1537.  
  1538. ------------------------------
  1539. Q.23 - How to find out which floating point unit is in use.
  1540.  
  1541.       An AIX command tells you which type of floating point card you have:
  1542.             fptype
  1543.  
  1544.       It returns 5 different values: software (0), FPA (1), 68881 (2),
  1545.       AFPA w/o DMA (4), and AFPA w/ DMA (12). In addition to the exit values,
  1546.       it prints a message to stdout.
  1547.  
  1548.       The information it returns is also available in Virtual Machine low
  1549.       memory location 0xcc. This byte of information is identical to the exit
  1550.       values of fptype. This program will print the value:
  1551.           main() { printf("0x%x\n", *(char *)0xcc); }
  1552.  
  1553. ------------------------------
  1554. Q.24 - HFT virtual terminal tips and tricks.
  1555.  
  1556.      You must be at the console to be able to activate a new virtual
  1557.      terminal. Type "open xxx" and the system will open a new virtual
  1558.      terminal with the xxx Shell, where xxx stands for:
  1559.           sh ....... Bourne Shell
  1560.           csh ...... C Shell
  1561.           dos ...... DOS Shell
  1562.           actmngr .. Usability Shell
  1563.           xinit .... X-Windows
  1564.  
  1565.      To move forward from one virtual terminal to another, press the
  1566.      <alt>-<action> keys together.
  1567.  
  1568.      To terminate a virtual terminal session, hit: <ctl>-d, or exit
  1569.      that shell program.
  1570.  
  1571.      By default you can open up to 16 virtual terminals on the console.
  1572.      This can be changed by a kernel value in /etc/master:
  1573.            hftbuffers=16
  1574.  
  1575.      at the expense of making the kernel larger.
  1576.  
  1577.      NOTE: If the user-profile contains /bin/sh as start-program, then you
  1578.      can log out from the /dev/console, even if you still have virtual
  1579.      terminals open. To avoid this, the program /bin/actman should be defined
  1580.      as start-program in the user-profile: the actman would then take over the
  1581.      control of the different opened virtual terminals. Example of such a user
  1582.      definition in the file /etc/passwd: 
  1583.           "user::201:200::/u/user:/bin/actman".
  1584.  
  1585.      (The actman program is located on the Useability Services diskettes.)
  1586.  
  1587.      You can use a shell script to automate the opening of different
  1588.      virtual terminals on the console:
  1589.             PS1="shell#1 > "; export PS1
  1590.             open sh
  1591.             PS1="shell#2 > "; export PS1
  1592.             cd $HOME/dira
  1593.             open sh
  1594.             PS1="shell#3 > "; export PS1
  1595.             cd $HOME/dirb
  1596.             open sh
  1597.  
  1598.      NOTE: You can use the 'display' command to change fonts on an individual
  1599.      virtual terminal with the -t flag.  Each virtual terminal can
  1600.      have a different size font associated with it.  This can also be done
  1601.      with colors as well, using the -f and -b flags to set the forground
  1602.      (text) and background colors on adapters with color capability.  
  1603.  
  1604.      The IBM5151 (XT mono display), while it can be used as a console, and
  1605.      have virtual terminals like the other adapters, it cannot use different
  1606.      size fonts or colors due to the restrictions of the adapter. 
  1607.      It CAN use inverse video, blinking and underlined text, where the other
  1608.      adapters cannot.
  1609.  
  1610.      Note: The PF keys on the console keyboard can be pre-programmed.
  1611.        The 'defkey' command allows you to assign strings to the keys,
  1612.        save the definitions in a file and retrieve them.
  1613.  
  1614. ------------------------------
  1615. Q.25 - How to determine how much real memory AIX has available.
  1616.  
  1617.      To find out the real memory size, use the crash command:
  1618.          $ crash
  1619.          > od meminbox          this should give the real memory size in hex
  1620.          > q                    to quit
  1621.  
  1622.      The following C program detects which real memory cards are installed
  1623.      in the RT.  It will give how much memory you have in the Slots C and D,
  1624.      and the value of the memory configuration register.
  1625.  
  1626. #include <fcntl.h>
  1627.  
  1628. #define EIGHT   0x4
  1629. #define FOUR    0x0
  1630. #define ONE     0x1
  1631. #define TWO     0x5
  1632. #define NONE    0x7
  1633. #define SLOTC   0x7
  1634. #define SLOTD   0x70
  1635.  
  1636. main()
  1637. {   char size, megsc, megsd;
  1638.     int busfd;
  1639.     if ( (busfd = open("/dev/bus",O_RDONLY)) < 0)
  1640.       {
  1641.        printf(" bus access failed.\n");
  1642.        return 8;
  1643.       }
  1644.     size= (* (char *) 0xf0008c80);
  1645.     switch(size & SLOTC) {
  1646.         case EIGHT : megsc = 8; break;
  1647.         case FOUR  : megsc = 4; break;
  1648.         case ONE   : megsc = 1; break;
  1649.         case TWO   : megsc = 2; break;
  1650.         case NONE  : megsc = 0; break;
  1651.     }
  1652.     switch((size & SLOTD)>>4) {
  1653.         case EIGHT : megsd = 8; break;
  1654.         case FOUR  : megsd = 4; break;
  1655.         case ONE   : megsd = 1; break;
  1656.         case TWO   : megsd = 2; break;
  1657.         case NONE  : megsd = 0; break;
  1658.     }
  1659.     printf("Slot C has %d MB, slot D has %d MB\n", megsc, megsd);
  1660.     printf("Value of memory configuration register is 0x%x.\n", size);
  1661.     close (busfd);
  1662. }
  1663.  
  1664. ------------------------------
  1665. Q.26 - How to get reverse video on the 6153 display.
  1666.  
  1667.      You can get a 'temporary' video reverse (white characters on a black
  1668.      background) by issuing the command:
  1669.  
  1670.            echo "\033[7m".
  1671.  
  1672.      You can put this command into the user's .profile, the system's profile,
  1673.      or create a shell script (new command) to invoke it.
  1674.      Putting it in the user's profile means it will be video reversed for
  1675.      that user only; putting it in the system's profile means it will be 
  1676.      video reversed for everyone.
  1677.  
  1678.      There is no way to change the whole screen since black on white is
  1679.      hard coded into the software.
  1680.  
  1681. ------------------------------
  1682. Q.27 - /tmp is too small.
  1683.  
  1684.      If /tmp is temporarily too small, if you have space in another
  1685.      filesystem (/u for example) and use AIX version 2.1.1 or
  1686.      more recent, just create a directory in the other filesystem
  1687.      called "tmp" and issue:
  1688.              mount /u/tmp /tmp
  1689.  
  1690.      When you are through, issue:
  1691.              umount /tmp
  1692.  
  1693.      You have to be root for the mount and the umount.
  1694.  
  1695.      To enlarge the /tmp minidisk permently, use the following procedure:
  1696.  
  1697.       - Find the IODN of the /tmp minidisk (should be hd3 16388)
  1698.       - Boot with the installation/maintenance diskette.
  1699.       - select the maintenance option
  1700.       - Use option x to delete the minidisk specifying the IODN.
  1701.       - create a new, larger minidisk using the same IODN
  1702.       - make a filesystem on the new minidisk
  1703.       - exit and reboot normally
  1704.  
  1705. ------------------------------
  1706. Q.28 - How to change the cursor type/shape.
  1707.  
  1708.     * On the IBM 3161 display, hit:
  1709.        <cntl>-<altcsr>
  1710.  
  1711.     * On a native display, you can use the following shell script:
  1712.         echo "\033[x\000\000\000\014\002\010\004\000\000\000\000\00$1"
  1713.  
  1714.       Name it "kursor" and invoke it as
  1715.         kursor 0  - no cursor
  1716.         kursor 1  - single underline.
  1717.         kursor 2  - double underline (normal cursor).
  1718.         kursor 3  - lower half block cursor.
  1719.         kursor 4  - single line above the position.
  1720.         kursor 5  - Solid block.
  1721.         kursor 6  - Double line above cursor position
  1722.  
  1723.     Note: This script also works in aixterm X-windows.
  1724.  
  1725. ------------------------------
  1726. Q.29 - How to copy diskettes with a single diskette drive.
  1727.  
  1728.    To copy a diskette on another diskette, use the following shell script:
  1729.  
  1730.   echo 'Looping single copy of a source diskette,'
  1731.   again="y"
  1732.   while  expr "$again" = "y" >/dev/null
  1733.   do     echo 'insert source diskette and press ctl-d to proceed'
  1734.          cat >/dev/null
  1735.          echo 'Reading...'
  1736.          dd if=/dev/rfd0 of=/tmp/diskcopy bs=122880
  1737.          if    expr "$?" |= 0 >/dev/null
  1738.          then  echo "Input failed $?"
  1739.                exit
  1740.          fi
  1741.          echo 'Remove source diskette,'
  1742.          echo 'insert a new target diskette and press ctl-d to proceed'
  1743.          cat >/dev/null
  1744.          echo 'Writing...'
  1745.          dd if=/tmp/diskcopy of=/dev/rfd0 bs=122880
  1746.          if    expr "$?" |= 0 >/dev/null
  1747.          then  echo "Output failed $?"
  1748.                continue
  1749.          fi
  1750.          echo 'Done!'
  1751.          echo 'Another copy (y/n)?'
  1752.          read again
  1753.   done
  1754.   rm /tmp/diskcopy
  1755.   exit
  1756.  
  1757.    If you have two diskette drives, this command will copy a 1.2 Meg diskette,
  1758.    regardless of its format, DOS or AIX.
  1759.  
  1760.          dd if=/dev/rfd0 of=/dev/rfd1 bs=122880
  1761.  
  1762.    Note:  The blocksize (bs) value is copying 8 double sided tracks
  1763.    at once: 8*15*2*512=122880.  This is the maximum the floppy driver
  1764.    will handle at once, and is the most efficent for copy operations.
  1765.  
  1766.    Note: These copies will work, regardless of the format, DOS or AIX.
  1767.  
  1768.    NOTE: If the floppy is low density (360K) adjust the bs value and
  1769.          use the /dev/rfd0.9  device names.
  1770.  
  1771. ------------------------------
  1772. Q.30 - How to copy a set of DOS files to a AIX filesystem.
  1773.  
  1774.     Note: A better set of DOS tools is the 'mtools' package.  It is
  1775.           easily ported to AIX/RT.  With mtools this becomes:
  1776.               "mcopy a:*.* ."
  1777.  
  1778.     Assuming you have a diskette containing DOS files to be read in an
  1779.     AIX filesystem, change to the target directory and use the following
  1780.     shell script (either interactively or from a stored script):
  1781.  
  1782.     #!/bin/sh
  1783.     for filename in `dosdir | fgrep -v "Free space"`
  1784.     do
  1785.      f=`echo $filename | tr '[A-Z]' '[a-z]'`
  1786.      echo "$filename \c"
  1787.      dosread -a $f $f
  1788.     done
  1789.     echo "\n\ndone!\.n"
  1790.     exit 0
  1791.  
  1792. Note: Capital letters in the filenames are converted to small.
  1793.  
  1794. ------------------------------
  1795. Q.31 - How to run AIX/RT AIXwindows v2.1 and other X11 notes.
  1796.  
  1797.  *** IBM AIX/RT AIXwindows V2.1 is a X11R2 base, and if upgraded by
  1798.      the maintence update 1723 or later, is X11R3.
  1799.  
  1800.  *** Starting X-WINDOWS
  1801.       - Login as user (not root)
  1802.       - Open a shell and type: xinit
  1803.         or type directly: open xinit
  1804.  
  1805.  *** Using the mouse
  1806.       X-Windows was written to support a three button mouse.
  1807.       The IBM RT mouse is a two button mouse. The RT mouse buttons are
  1808.       defined as follows:
  1809.  
  1810.          LEFT = LEFT        RIGHT = RIGHT        CENTER = BOTH
  1811.  
  1812.  *** Stopping X-WINDOWS
  1813.       Press: <ctl>-<alt>-<backspace>
  1814.       This takes you back to the shell you opened.
  1815.  
  1816.  *** Remote execution
  1817.       You can run "aixterm" remotely:
  1818.  
  1819.         First   type:   "xhost +remote"
  1820.                 where:  remote is the name of the remote machine
  1821.                         The remote machine can now access your X server.
  1822.  
  1823.         Then    Start the remote shell with:
  1824.                 "rexec remote aixterm local:0"
  1825.                 where: local is the name of the local machine
  1826.  
  1827.      If you want to enable this for the first instance of the X server
  1828.      on a default basis, create and edit the folowing file:
  1829.         /etc/X0.hosts
  1830.  
  1831.      This file is a simple ascii file with one line per host name
  1832.      allowed to contact this server on this host, or a plus (+) by itself
  1833.      allowing ALL hosts.  This file will allow access to listed hosts for
  1834.      the "0"th instance of the X server.   Other X programs on remote machines
  1835.      will know this server as "machinename:0".
  1836.  
  1837.      If you run another X server, at the same time on another virtual HFT
  1838.      terminal, it will be known as "machinename:1", ect..
  1839.      This will require a /etc/X1.hosts file.. ect for the number of servers
  1840.      you have running.
  1841.  
  1842.  *** Running on a multi-display RT
  1843.       Use the "display" command to set the default device, for example,
  1844.       to the megapel; the virtual terminal that "xinit" opens will then
  1845.       appear on the megapel.
  1846.  
  1847.       Alternatively, use from the /dev/console:
  1848.  
  1849.            xinit -dd 5081          (to start on the megapel)
  1850.            xinit -dd 6155          (to start on the 6155)
  1851.  
  1852.       This avoids having the bother with the "display" default. You can
  1853.       edit this specification into your own copy of "xinit".
  1854.  
  1855.       You can have independent X servers running on each display adapter
  1856.       you have attached.  Assume you have two displays, a megapel, and
  1857.       a 6155 display, and the megapel is your default console.
  1858.         
  1859.         login user 
  1860.         open sh                  (to get a second virtual term on megapel)
  1861.         display -d advmono       (the 6155 display)
  1862.         xinit                    (x server :0 starts on 6155)
  1863.              (input moves to the just started X server on the 6155)
  1864.         <cntl>-<action>          (moves input back to /dev/console)
  1865.         <cntl>-<action>          (moves input to /dev/hft/0 on megapel)
  1866.         display -d megapel       (to point default back to megapel)
  1867.         xinit                    (new X server :1 starts on megepel)
  1868.         
  1869.         This procedure leaves /dev/console available for console error
  1870.         messages.
  1871.  
  1872.    ==**==**==**==**==**==**==**==**==**==**==**==**==**==**==**==**==**==
  1873.    Submitter: John F Carr (jfc@athena.mit.edu)
  1874.    Date: 18 Sep 89 06:21:54 GMT
  1875.  
  1876.    The X server on the IBM RT supports multiple screens (in fact, I have
  1877.    3 in front of me right now).  They can be placed in any order, but
  1878.    only horizontally.  I've never felt any desire to have vertical
  1879.    stacking, since I don't stack my hardware.  There are runtime options
  1880.    to identify the top and bottom edges of the screen (so that the cursor
  1881.    appears at the bottom after moving off the top), or the right and left
  1882.    edges of the extreme screens.  If both options are selected the
  1883.    display is like a torus.
  1884.    
  1885.    There certainly should be an option to choose the order of the screens
  1886.    (due to limitations of desk space and cable length, the physical order
  1887.    of my screens is restricted, and I want the logical order to match).
  1888.    With the RT X server, the screens are assigned in the order they are
  1889.    listed on the command line.  The server lacks a method of assigning
  1890.    numbers to screens independently of right-to-left order; this would be
  1891.    a good addition.  
  1892.    
  1893.    The Xibm multi-screen support is unlikely to change much for R4; I
  1894.    haven't paid attention to any other servers.
  1895.  
  1896.    ==**==**==**==**==**==**==**==**==**==**==**==**==**==**==**==**==**==
  1897.    
  1898.  *** Mouse or Tablet
  1899.      AIXwindows can use a tablet connected to the pointing device port,
  1900.      instead of a mouse.  However, the mouse and the tablet are not
  1901.      interchangeable without consequences:
  1902.  
  1903.         - the mouse is a RELATIVE input device
  1904.         - the tablet is an ABSOLUTE input device
  1905.  
  1906.      Applications that expect to 'warp' the pointer to a window, and have
  1907.      the user operate from that window, will not operate quite like 
  1908.      expected.  The pointer will 'snap' back to the tablet physical position
  1909.      of the puck on the tablet surface, when moved again.  The physical
  1910.      position of the puck on the tablet surface will match the relative
  1911.      position of the cursor on the screen.
  1912.   
  1913.      If you use the stylus with the tablet, you will only have access to
  1914.      button one, by pressing on the pen point.   If you have the 
  1915.      four button puck for the tablet, all three buttons are available,
  1916.      and button four is ignored.
  1917.  
  1918.  *** NOTE: X-Windows does not run on an IBM 5081 display attached to an
  1919.      IBM 5085 control unit.  You must attach the IBM 5081 to the RT via
  1920.      a megapel adapter.  The 5085 control unit CAN be used by the
  1921.      CADAM and CATIA software packages.
  1922.  
  1923. ------------------------------
  1924. Q.32  - How to recreate a lost+found directory.
  1925.  
  1926.      In order for the fsck command to be able to rescue lost inodes and
  1927.      files, there must be a "lost+found" directory in the filesystem.
  1928.  
  1929.      You should be superuser, with the filesystem mounted, and issue 
  1930.      a cd command to the mount point of the filesystem where you
  1931.      want to make lost+found.  After it is created the directory must
  1932.      have permissions 755 and be owned by root, group system.
  1933.  
  1934.      Here is a shell script to re-create a lost "lost+found" directory:
  1935.  
  1936.        #!/bin/sh
  1937.        mkdir lost+found
  1938.        chmod 755 lost+found
  1939.        cd lost+found
  1940.        for i in a b c d e f g...x y z        #fill in the letters
  1941.        do
  1942.          for j in a b c d e f g...x y z      #ditto
  1943.          do
  1944.            echo > $i$j
  1945.          done
  1946.        done
  1947.        rm *
  1948.  
  1949.      Note: The files are created and then deleted in this directory to
  1950.      cause the directory to grow in size.  This is necessary as the
  1951.      fsck command cannot expand this directory while working on a damaged
  1952.      filesystem.  Files will from time to time be created here with the
  1953.      filename the same as the inode number when fsck detects a filesystem
  1954.      problem.  If you are running out of space in a filesystem and cannot
  1955.      find out where the space is going, check out this directory and 
  1956.      clean out the old files.
  1957.  
  1958. ------------------------------
  1959. Q.33 - Minidisk tricks and traps.
  1960.  
  1961.      * Restore minidisks names
  1962.  
  1963.        To restore the names of the user minidisks after a reinstall or
  1964.        when moving a disk drive from one system to another, or somehow
  1965.        'lost' a minidisk, use the command:
  1966.             mdrc -h hdisk#
  1967.  
  1968.        This command will read the minidisk partition tables on the specified
  1969.        drive and alter the /etc/system and /etc/filesystems to resolve
  1970.        conflicts.
  1971.   
  1972.        WARNING: This command will permanently alter the minidisk information
  1973.        on the referenced drive.  Executing this command on a drive that has
  1974.        system minidisks on it (from another system) will render it unusable
  1975.        as a boot device again, as the minidisk names and IODN numbers will now
  1976.        no longer be correct.
  1977.  
  1978. ------------------------------
  1979. Q.34 - How to make the backup command default to a longer tape.
  1980.  
  1981.        The parameter "backuplen" in the first stanza of /etc/filesystems
  1982.        is initialized for 300 feet tapes. Different cartridges have different
  1983.        lengths and number of available tracks.
  1984.  
  1985.        The value assigned to "backuplen" should be the length of the tape
  1986.        (in feet) times the number of tracks. 
  1987.  
  1988.        Note: This value does NOT change the length when using tar or cpio.
  1989.  
  1990.          Recommendations for 6157-001:
  1991.       
  1992.          TAPE CARTRIDGE LENGTH    TRACKS  backuplen   CAPACITY
  1993.       
  1994.          3M DC 300A     300 feet     9       2700       29 MB
  1995.          3M DC 300XLP   450 feet     9       4050       44 MB
  1996.          3M DC 600A     600 feet     9       5400       59 MB
  1997.       
  1998.          Recommendations for 6157-002:
  1999.       
  2000.          TAPE CARTRIDGE LENGTH    TRACKS  backuplen   CAPACITY
  2001.       
  2002.          3M DC 600A     600 feet    15       9000      118 MB
  2003.          3M DC 600XTD   600 feet    18      10800      142 MB
  2004.          3M DC 6150     600 feet    18      10800      142 MB
  2005.  
  2006. ================================================================================
  2007.  
  2008. Posted around the first of each month to comp.sys.ibm.pc.rt, and
  2009. to comp.unix.aix.
  2010.  
  2011. This FAQ is dedicated to use of the AIX Version 2 operating system, running
  2012. on the IBM RISC processor known as the RT.  The RT is known also as 
  2013. an IBM model 6150 or 6151 machine.
  2014.  
  2015. For AIX RT  submissions E-mail to:   aix-rt@antimatr.hou.tx.us
  2016. For AOS RT  submissions E-mail to:   aos-rt@antimatr.hou.tx.us
  2017. For MACH RT submissions E-mail to:   mach-rt@antimatr.hou.tx.us
  2018. For general Q&A submissions (hardware and other stuff) E-mail to:
  2019.    faq-rt@antimatr.hou.tx.us
  2020.  
  2021. Other comments and correctons should be sent to the author:
  2022.     Mark Whetzel
  2023.     DOMAIN addr: markw@antimatr.hou.tx.us
  2024.     BANG address:  ..!uhnix1!lobster!antimatr!markw
  2025.     Daytime work number  8AM-5PM M-F CST  VOICE: (713) 963-2544
  2026.  
  2027.                    *** FAQ Continued in part 4 ***
  2028. ===================== end of ibm-rt-faq/aix-v2/part3 ===========================
  2029. -- 
  2030. AIX..... NOT just another UNIX. (tm)
  2031. Mark Whetzel                          | My own RT system.. My own thoughts..
  2032. DOMAIN: markw@antimatr.hou.tx.us      | IBM RT/135 running AIX 2.2.1 
  2033. UUCP ..!menudo!lobster!antimatr!markw | comp.sys.ibm.pc.rt FAQ maintainer.
  2034.